package com.ity.teamanagement.code;

/**
 * @author coderFu
 * @create 2021/6/2
 */
public enum HomeModuleCode implements Code {

    HOME_MODULE_ADD_FAIL(false,5001,"首页模块添加失败"),
    HOME_MODULE_DELETE_FAIL(false,5002,"首页模块删除失败"),
    HOME_MODULE_UPDATE_FAIL(false,5003,"首页模块修改失败")
   ;




    HomeModuleCode(boolean success, Integer code, String message){
        this.success = success;
        this.code = code;
        this.message = message;
    }

    private boolean success;

    private Integer code;

    private String message;


    @Override
    public boolean success() {
        return this.success;
    }

    @Override
    public int code() {
        return this.code;
    }

    @Override
    public String message() {
        return this.message;
    }
}
